#include "mainwindow.h"

#include <QApplication>
#include "FloraLogger.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    FloraLogger &logger = FloraLogger::instance();
    logger.enableLogToFile(true); // 启用文件记录
    logger.enableLogWindow(true); // 启用日志窗口
    QFont customFont("Arial", 12);
    FloraLogger::instance().setFont(customFont);
    MainWindow w;
    // logger.embedInWidget(&w);
    LOG_INFO("This is an info message.");
    LOG_WARN("This is a warning message.");
    LOG_ERROR("This is an error message.");
    qDebug()<<"输出开始";
    w.show();
    return a.exec();
}
